export const TYPE = 2
export const statusList = [
  {
    value: '0',
    label: '学生发起运营未读'
  },
  {
    value: '1',
    label: '运营已读'
  },
  {
    value: '2',
    label: '运营回复'
  },
  {
    value: '3',
    label: '学生已读'
  },
  {
    value: '4',
    label: '学生回复运营未读'
  },
  {
    value: '5',
    label: '系统未读'
  },
  {
    value: '6',
    label: '系统已读'
  }
]
export const leftSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '项目',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '企业',
    keyIndex: 'companyName',
    placeholder: '请输入企业名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  }
]

export const middleSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '项目',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '企业',
    keyIndex: 'companyName',
    placeholder: '请输入企业名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '操作人',
    keyIndex: 'creator',
    placeholder: '请输入操作人姓名',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  }
]

export const addColumnConfig = [
  {
    type: 'input',
    value: '',
    label: '名称',
    keyIndex: 'name',
    placeholder: '输入名称。10字以内',
    span: 24,
    rules: { required: true, message: '请输入名称', trigger: 'change' },
    visible: true,
    inputWidth: '300px',
    inputRef: 'name',
    maxlength: 10,
    showWordLimit: true,
    inputType: 'text'
  },
  {
    type: 'radio',
    value: '0',
    label: '发布状态',
    keyIndex: 'status',
    span: 24,
    options: [
      {
        value: '1',
        label: '发布'
      },
      {
        value: '0',
        label: '不发布'
      }
    ]
  }
]

export const leftTableConfig = {
  colums: [
    {
      props: 'companyName',
      label: '企业名称',
      width: 220,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'title',
      label: '项目名称',
      width: 220,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'entryNum',
      label: '报名数量',
      slot: 'entryNum',
      width: 80
    },
    {
      props: 'entryTime',
      label: '最近报名时间',
      sortable: false
    },
    {
      props: 'startTime',
      label: '开始时间',
      sortable: false
    },
    {
      props: 'endTime',
      label: '结束时间',
      sortable: false
    },
    {
      props: 'closingDate',
      label: '作品截至上传时间',
      sortable: false
    },
    {
      props: 'updateTime',
      label: '操作时间',
      sortable: true
    }
  ],
  showSelection: true,
  showIndex: true
}

export const resultClassifiyConfig = {
  colums: [
    {
      props: 'companyName',
      label: '企业名称',
      width: 220,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'title',
      label: '项目名称',
      width: 220,
      align: 'left',
      showOverflowTooltip: false
    },
    {
      props: 'entryNum',
      label: '参赛数量',
      slot: 'entryNum'
    },
    {
      props: 'entryTime',
      label: '最近报名时间',
      sortable: false
    },
    {
      props: 'startTime',
      label: '开始时间',
      sortable: false
    },
    {
      props: 'endTime',
      label: '结束时间',
      sortable: false
    },
    {
      props: 'closingDate',
      label: '作品截至上传时间',
      sortable: false
    },
    {
      props: 'updateTime',
      label: '操作时间',
      sortable: true
    }
  ],
  showIndex: true
}

export const recycleBinConfig = {
  colums: [
    {
      props: 'name',
      label: '类型名称',
      sortable: true
    },
    {
      props: 'num',
      label: '数量'
    },
    {
      props: 'statusStr',
      label: '发布状态',
      sortable: true
    },
    {
      props: 'updateTimeStr',
      label: '删除时间'
    },
    // {
    //   props: "reply",
    //   label: "最近操作"
    // },
    {
      props: 'creator',
      label: '创建人'
    }
  ],
  showIndex: true
}
